/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-29 12:45:29
 * @Description  : 激活码相关的一些类型
 */
import type { PageRes } from './commom'

export interface ActiveCodeReq {
  page?: number
  pageSize?: number
  examId?: string
}

// ActiveCode返回实体
export interface ActiveCodeRes {
  id: string
  code:string
  examId:string
  Exam:any
  UserActiveExams:any
  createTime:string
}

// 分页ActiveCode返回实体
export type ActiveCodePageRes = PageRes<ActiveCodeRes>

// 激活码添加请求实体类型
export interface ActiveCodeCreateReq {
  examId:string
}

// 激活码修改请求实体
export interface ActiveCodeUpdateReq {
  activeCodeId?: string
  examId:string
}

export type ActiveCodeRowData = ActiveCodeRes
